package com.jjw.route.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 
 * 
 * @author jjw
 * @email 2371671097@qq.com
 * @date 2023-05-12 07:45:21
 */
@Data
@TableName("artical")
@NoArgsConstructor
public class ArticalEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 文章id
	 */
	@TableId(type = IdType.AUTO)
	private Integer id;
	/**
	 * 用户id
	 */
	private Integer uid;
	/**
	 * 文字内容
	 */
	private String content;
	/**
	 * 图片
	 */
	private String imgs;
	/**
	 * 点赞量
	 */
	private Long ilike;
	/**
	 * 地点
	 */
	private String location;
	/**
	 * 事件间隔
	 */
	private Integer timeinterval;

	/**
	 * 发布时间
	 */
	private Date realsetime;

	public ArticalEntity(Integer uid, String content, String imgs, Long ilike, String location, Integer timeinterval) {
		this.uid = uid;
		this.content = content;
		this.imgs = imgs;
		this.ilike = ilike;
		this.location = location;
		this.timeinterval = timeinterval;
	}
}
